package com.ldc.commonlibs.ui;

import androidx.viewbinding.ViewBinding;

import com.ldc.commonlibs.common.ViewModelBase;

/**
 * @author liudc
 * @since 2022/7/3 13:50
 */
public abstract class VMActivityBase<VB extends ViewBinding, VM extends ViewModelBase> extends VActivityBase<VB> {
    protected VM viewModel;

    @Override
    protected VB loadingViewBinding() {
        viewModel = initViewModel();
        return super.loadingViewBinding();
    }

    protected abstract VM initViewModel();
}
